Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.ecm.multi.tenant.actions--filters

This contribution is part of XML component org.nuxeo.ecm.multi.tenant.actions inside nuxeo-multi-tenant-jsf-9.10.jar /OSGI-INF/actions-contrib.xml

Extension Point

Extension point filters of component ActionService.

Contributed Items

  • <filter id="allowForTenantConfig">
          <rule grant="true">
            <facet>TenantConfig</facet>
          </rule>
        </filter>
  • <filter id="denyForTenantConfig">
          <rule grant="false">
            <facet>TenantConfig</facet>
          </rule>
        </filter>
  • <filter id="tenantAdministrators">
          <rule grant="true">
            <condition>#{currentUser.administrator}</condition>
            <condition>#{currentUser.isMemberOf('powerusers')}</condition>
          </rule>
        </filter>
  • <filter id="readOnlyDirectory">
          <rule grant="true">
            <condition>#{multiTenantActions.isReadOnlyDirectory(directoryName)}</condition>
          </rule>
        </filter>

XML Source

<extension point="filters" target="org.nuxeo.ecm.platform.actions.ActionService">

    <filter id="allowForTenantConfig">
      <rule grant="true">
        <facet>TenantConfig</facet>
      </rule>
    </filter>

    <filter id="denyForTenantConfig">
      <rule grant="false">
        <facet>TenantConfig</facet>
      </rule>
    </filter>

    <filter id="tenantAdministrators">
      <rule grant="true">
        <condition>#{currentUser.administrator}</condition>
        <condition>#{currentUser.isMemberOf('powerusers')}</condition>
      </rule>
    </filter>

    <filter id="readOnlyDirectory">
      <rule grant="true">
        <condition>#{multiTenantActions.isReadOnlyDirectory(directoryName)}</condition>
      </rule>
    </filter>

  </extension>